<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<script type="text/javascript">
function loginCheck(){
	
	var id = document.getElementById("loginId");
	var pwd = document.getElementById("loginPassword");
	//alert(id);

	if(id.value==""){
		alert("아이디를 입력해 주세요.");
		id.focus();
		return false;
	}
	if(pwd.value==""){
		alert("비밀번호를 입력해 주세요.");
		pwd.focus();
		return false;
	}

}

</script>
</head>
<c:if test="${requestScope.error_message!=null }">
<font color="red">${requestScope.error_message }</font> 
</c:if><br>
<form action="/${initParam.context_root }/memberLogin.do" name="login_form" onsubmit="return loginCheck()">
	<center>
		<table  cellpadding="5" bgcolor="white" align="center">
			<tr>
				<th align="center" colspan="2" bgcolor="#afeeee" height="13px"> 로그인</th>
			</tr>
			<tr>
			<td colspan="2" align="left" bgcolor="lightgray"><label><input type="radio" name="choiceMember" value="admin">관리자</label><label><input type="radio" name="choiceMember" value="company">기업고객</label>
			<br><label><input type="radio" name="choiceMember" value="member" checked="checked">일반회원</label></td>
		</tr>
			<tr>
				<td>ID
				</td>
				<td>
			
				<input type="text" name="id" id="loginId">
				</td>
			</tr>
			<tr>
				<td>PW
				</td>
				<td><input type="password" name="password" id="loginPassword">
				</td>
				</tr>
				<tr>
				<td colspan="2" bgcolor="#afeeee">
					<input type="submit" value="로그인"><input type="button" value="회원가입" onclick="location.href='memberRegisterIndexTiles.do'"><br>
					<a href="/${initParam.context_root }/idSearchIndex.do">아이디</a>/<a href="/${initParam.context_root }/passwordSearchIndex.do">비밀번호 찾기</a>
				</td>
			</tr>
		</table>

	</center>
</form>
